package edu.msg.jthr.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "JOB_DESCRIPTION")
public class JobDescription extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@NotNull
	@OneToOne
	@JoinColumn(name = "DEPARTMENT_ID", referencedColumnName = "ID")
	private Department department;

	@Column(name = "PROJECT")
	private String project;

	@NotNull
	@Column(name = "REQUIREMENTS")
	private String requirements;

	@NotNull
	@Column(name = "RESPONSABILITIES")
	private String responsabilities;

	public JobDescription() {
	}

	public JobDescription(long id, String uuid, Department departament,
			String project, String requirements, String responsabilities) {
		super(id, uuid);
		this.department = departament;
		this.project = project;
		this.requirements = requirements;
		this.responsabilities = responsabilities;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getRequirements() {
		return requirements;
	}

	public void setRequirements(String requirements) {
		this.requirements = requirements;
	}

	public String getResponsabilities() {
		return responsabilities;
	}

	public void setResponsabilities(String responsabilities) {
		this.responsabilities = responsabilities;
	}

}
